import request from '@/utils/request';

// 获取库存列表
export function getStockList() {
  return request({
    url: `/api/api/inventory/getList`,
    method: 'get',
  });
}

export function getStockListByName(params) {
  return request({
    url: `/api/api/inventory/getListaaa`,
    method: 'get',
    params
  });
}

// 添加库存记录
export function saveInventoryRecord(data) {
  return request({
    url: '/api/api/inventory/addInventoryRecord',
    method: 'post',
    data,
  });
}
//获取库存表
export function getStockRecordList(data) {
  return request({
    url: '/api/api/inventory/getStockRecordList',
    method: 'get',
    data,
  });
}
